home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is SHIFTIT2.BAT
- IF %1!==! GOTO OOPS
- :TOP
- IF %1!==! GOTO END
- IF EXIST %1*.* GOTO START
- ECHO No files beginning with %1
- GOTO SH
- :START
- ECHO Want to see files beginning with %1 (Y/N)?
- KEY
- IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO Y
- GOTO SH
- :Y
- DIR %1*.* /P
- :SH
- SHIFT
- GOTO TOP
- :OOPS
- ECHO Enter 1 or more letters of the alphabet
- ECHO and %0 will selectively let you look at
- ECHO all files beginning with those letters
- :END
-